package com.tmindtech.api.justice.db

import com.tmindtech.api.justice.model.JusticeCase
import org.apache.ibatis.annotations.Param
import org.apache.ibatis.annotations.Select
import tk.mybatis.mapper.common.Mapper
import java.util.*

/**
 * Created by RexQian on 2017/11/22.
 */
interface JusticeCaseMapper : Mapper<JusticeCase> {
    @Select("SELECT * FROM t_justice_case WHERE enterprise_id = \${enterprise_id} AND judge_date >= #{start_time} AND judge_date < #{end_time}")
    fun selectByCondition(@Param("enterprise_id") enterpriseId: Long,
                          @Param("start_time") startTime: Date,
                          @Param("end_time") endTime: Date): List<JusticeCase>
}
